import request from "@/utils/request";

export function login(data) {
  return request({
    url: "/sys/login",
    method: "post",
    data,
  });
}
export function getUserInfo() {
  return request({
    url: "/sys/profile",
  });
}
/**
 * 更新密码
 * **/
export function updatePassword(data) {
  return request({
    url: "/sys/user/updatePass",
    method: "put",
    data,
  });
}

//
export function getUserDetailById(userId) {
  return request({
    url: `/salarys/modify/${userId}`,
  });
}
